@layout("/common/_form.html",{js:["/assets/agent/agent_details.js"],css:["/assets/common/module/formSelects/formSelects-v4.css"]}){

<style>
.layui-form-item {
    margin-bottom: 0px;
    margin-top: 1px;
}
.layui-form-item .layui-input-inline {
    float: left;
    width: 250px;
    margin-right: 10px;
}
.layui-form-label {
    float: left;
    display: block;
    width: 130px;
    font-weight: 400;
    line-height: 20px;
    text-align: right;
    padding: 9px 15px;
}
.layui-input, .layui-textarea {
    display: block;
    width: 100%;
    padding-left: 10px;
    border-style: none;
}
.layui-card-header {
    position: relative;
    height: 42px;
    line-height: 42px;
    color: rgb(51, 51, 51);
    font-size: large;
    padding: 0px 15px;
    border-bottom: 1px solid rgb(246, 246, 246);
    border-radius: 2px 2px 0px 0px;
}
</style>
<form class="layui-form" id="userForm" lay-filter="userForm">
	<input type="hidden" id="agentId" name="agentId" value="${agent.agentId}">
	<input type="hidden" id="userId" name="userId" value="${agent.userId}">
	<input type="hidden" id="pushId" name="pushId" value="${agent.pushId}">
	<div class="layui-fluid" style="padding-bottom: 75px;">
		<div class="layui-card">
			<div class="layui-card-header">个人资料</div>
			<div class="layui-card-body">
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">头像：</label>
						<div class="layui-input-inline">
							<img style="width: 35px;" src="" disabled>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">艺名：</label>
						<div class="layui-input-inline">
							<input type="text" name="email" lay-verify="email"
								autocomplete="off" class="layui-input" value="${agent.nickName}" disabled>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">性别：</label>
						<div class="layui-input-inline">
							<input type="tel" name="phone" lay-verify="required|phone"
								autocomplete="off" class="layui-input" value="${agent.genderName}" disabled>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">生日：</label>
						<div class="layui-input-inline">
							<input type="text" name="email" lay-verify="email"
								autocomplete="off" class="layui-input" value="${agent.birthday,'yyyy-MM-dd'}" disabled>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">常驻城市：</label>
						<div class="layui-input-inline">
							<input type="tel" name="phone" lay-verify="required|phone"
								autocomplete="off" class="layui-input" value="${agent.city}" disabled>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">国籍：</label>
						<div class="layui-input-inline">
							<input type="text" name="email" lay-verify="email"
								autocomplete="off" class="layui-input" value="${agent.nationality}" disabled>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">个人简介：</label>
						<div class="layui-input-inline">
							<input type="tel" name="phone" lay-verify="required|phone"
								autocomplete="off" class="layui-input" value="${agent.synopsis}" disabled>
						</div>
					</div>
					<div class="layui-inline">
						<label class="layui-form-label">经纪人邮箱：</label>
						<div class="layui-input-inline">
							<input type="tel" name="phone" lay-verify="required|phone"
								autocomplete="off" class="layui-input" value="${agent.email}" disabled>
						</div>
					</div>
				</div>
			</div>
			<div class="layui-card-header">相关证件照片</div>
			<div class="layui-card-body">
				<div class="layui-form-item">
					<div class="layui-inline">
						<div class="layui-input-inline" style="width: 80%;">
							<img style="width: 80px;" src="${agent.relatedDocuments}">
						</div>
					</div>
				</div>
			</div>
			@if(agent.isAudit==1 || agent.isAudit==2){ 
			<div class="layui-card-header">审核结果</div>
            <div class="layui-card-body">
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">审核结果：</label>
						<div class="layui-input-inline">
							   <input name="date" id="date" value="${agent.reasonTypeName}"
                                       type="text" class="layui-input" disabled/>
						</div>
					</div>
				</div>
				@if(agent.isAudit==2){
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">理由类型：</label>
						<div class="layui-input-inline">
							   <select name="interest" lay-filter="status" lay-verify="required" required id="status" disabled>
                              		 <option value="">请选择拒绝理由</option>
                                    @if(agent.reasonType==0){
                                    	<option value="0" selected="selected">资料不全</option>
                                    @}
                                    @if(agent.reasonType==1){
                                    	<option value="1" selected="selected">虚假信息</option>
                                    @}
                              </select>
						</div>
					</div>
				</div>
				<div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">填写理由：</label>
						<div class="layui-input-inline">
							   <textarea id="writeReason" class="layui-textarea">${agent.writeReason}</textarea>
						</div>
					</div>
				</div>
				<div class="layui-inline layui-col-md12">
                    <label class="layui-form-label">图片：</label>
                    <div class="layui-input-block">
                      	@if(agent.imgList != null){
                        @for(offices in agent.imgList){
                           <img style="width: 104px; height: 104px;" src="${offices}" >
                        @}
                        @}
                    </div>
                 </div>
				@}
                <div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">操作人：</label>
						<div class="layui-input-inline">
							   <input name="date" id="date" value="${agent.operationName}"
                                       type="text" class="layui-input" disabled/>
						</div>
					</div>
				</div>
                <div class="layui-form-item">
					<div class="layui-inline">
						<label class="layui-form-label">操作时间：</label>
						<div class="layui-input-inline">
							   <input name="date" id="date" value="${agent.operationTimes,'yyyy-MM-dd HH:mm:ss'}"
                                       type="text" class="layui-input" disabled/>
						</div>
					</div>
				</div>
            </div>
            @}
		</div>
	</div>

	<div class="form-group-bottom text-center">
		@if(shiro.hasPermission("/modular/agent/audit")){
	    @if(agent.isAudit==0){
		<button type="button" class="layui-btn" style="width: 100px;background-color: #01aaed;" lay-filter="btnOpen" id="btnOpen">通过</button>
		<button type="button" class="layui-btn" style="width: 100px;background-color: #ff2274;" lay-filter="btnOpens" id="btnOpens">拒绝</button>
		@}
		@}
		<button type="reset" class="layui-btn layui-btn-primary"
			ew-event="closeDialog">&emsp;返回&emsp;</button>
	</div>

</form>

@}
